﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BneyBaruch.Ingest.MorningLesson.Contracts.Interfaces;
using BneyBaruch.Ingest.MorningLesson.Contracts.Messages;
using BneyBaruch.Ingest.MorningLesson.Contracts.Data;
using System.Windows.Forms;

namespace BneyBaruch.Ingest.WorkflowManagementMonitor
{
    public class MorningLessonWorkflowProcessorCallback : IMorningLessonWorkflowProcessorCallback
    {
        #region Fields

        private Form form;

        #endregion

        #region Constructors

        public MorningLessonWorkflowProcessorCallback(Form form)
        {
            this.form = form;
        }

        #endregion

        #region IMorningLessonWorkflowProcessorCallback Members

        public void NotifyWorkflowProgress(NotifyWorkflowProgressRequest notifyWorkflowProgressRequest)
        {
            MessageBox.Show(form,
                string.Format("Workflow {0} enter {1} activity.", notifyWorkflowProgressRequest.WorkflowId, notifyWorkflowProgressRequest.CurrentActivityName),
                "Workflow Progress", MessageBoxButtons.OK,
                MessageBoxIcon.Information, MessageBoxDefaultButton.Button1);
        }

        #endregion
    }
}
